package com.lanxin.jet.services;

import java.util.List;

import com.lanxin.jet.beans.ContentBean;

public interface ContentService {

    public final static int STATUS_HIDE     = 0; //隐藏
    public final static int STATUS_STAY     = 1; //待发布
    public final static int STATUS_OPEN     = 2; //开放
    public final static int STATUS_TOP      = 3; //置顶

    //标准CURD
    public String insert(String fid, String title);
    public int count(String fid, String keyword);
    public ContentBean get(String id);
    public void update(ContentBean content);
    public void delete(String id);

    /**
     * 获取栏目级别导航
     * @param id
     * @param level
     * @return
     */
    public List<String> getBreadcrumb(String id, int level);

    /**
     * 获取简单栏目列表
     * @param offset
     * @param limit
     * @param fid
     * @param keyword
     * @return
     */
    public List<ContentBean> getSimpleList(int offset, int limit, String fid, String keyword);
}